package com.bootdo.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;



/**
 * 产品
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2020-06-24 19:11:08
 */
public class ProductDO implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//产品id
	private Integer productId;
//	//分类id
	private Integer categoryId;
	//分类名字
	private String categoryName;

	private CategoryDO categoryDO;
	//产品编号
	private String productNum;
	//设备名称
	private String shebeiName;
	//基本参数
	private String baseParam;
	//完整参数
	private String allParam;
	//单位
	private String unit;
	//面价
	private Double facePrice = 0.00;
	//成本
	private Double chengben = 0.00;
	//设备成本
	private Double shebeiChengben = 0.00;
	//安装成本
	private Double anzhuangChengben = 0.00;
	//二级类别
	private String level2Cate;
	//品牌
	private String brand;
	//型号
	private String xinghao;
	//备注
	private String beizhu;
	//录入日期
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date createTime;

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	/**
	 * 设置：产品id
	 */
	public void setProductId(Integer productId) {
		this.productId = productId;
	}
	/**
	 * 获取：产品id
	 */
	public Integer getProductId() {
		return productId;
	}

	public CategoryDO getCategoryDO() {
		return categoryDO;
	}

	public void setCategoryDO(CategoryDO categoryDO) {
		this.categoryDO = categoryDO;
	}
	//	/**
//	 * 设置：分类id
//	 */
	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}
	/**
	 * 获取：分类id
	 */
	public Integer getCategoryId() {
		return categoryId;
	}
	/**
	 * 设置：产品编号
	 */
	public void setProductNum(String productNum) {
		this.productNum = productNum;
	}
	/**
	 * 获取：产品编号
	 */
	public String getProductNum() {
		return productNum;
	}
	/**
	 * 设置：设备名称
	 */
	public void setShebeiName(String shebeiName) {
		this.shebeiName = shebeiName;
	}
	/**
	 * 获取：设备名称
	 */
	public String getShebeiName() {
		return shebeiName;
	}
	/**
	 * 设置：基本参数
	 */
	public void setBaseParam(String baseParam) {
		this.baseParam = baseParam;
	}
	/**
	 * 获取：基本参数
	 */
	public String getBaseParam() {
		return baseParam;
	}
	/**
	 * 设置：完整参数
	 */
	public void setAllParam(String allParam) {
		this.allParam = allParam;
	}
	/**
	 * 获取：完整参数
	 */
	public String getAllParam() {
		return allParam;
	}
	/**
	 * 设置：单位
	 */
	public void setUnit(String unit) {
		this.unit = unit;
	}
	/**
	 * 获取：单位
	 */
	public String getUnit() {
		return unit;
	}
	/**
	 * 设置：面价
	 */
	public void setFacePrice(Double facePrice) {
		this.facePrice = facePrice;
	}
	/**
	 * 获取：面价
	 */
	public Double getFacePrice() {
		return facePrice;
	}
	/**
	 * 设置：成本
	 */
	public void setChengben(Double chengben) {
		this.chengben = chengben;
	}
	/**
	 * 获取：成本
	 */
	public Double getChengben() {
		return chengben;
	}
	/**
	 * 设置：设备成本
	 */
	public void setShebeiChengben(Double shebeiChengben) {
		this.shebeiChengben = shebeiChengben;
	}
	/**
	 * 获取：设备成本
	 */
	public Double getShebeiChengben() {
		return shebeiChengben;
	}
	/**
	 * 设置：安装成本
	 */
	public void setAnzhuangChengben(Double anzhuangChengben) {
		this.anzhuangChengben = anzhuangChengben;
	}
	/**
	 * 获取：安装成本
	 */
	public Double getAnzhuangChengben() {
		return anzhuangChengben;
	}
	/**
	 * 设置：二级类别
	 */
	public void setLevel2Cate(String level2Cate) {
		this.level2Cate = level2Cate;
	}
	/**
	 * 获取：二级类别
	 */
	public String getLevel2Cate() {
		return level2Cate;
	}
	/**
	 * 设置：品牌
	 */
	public void setBrand(String brand) {
		this.brand = brand;
	}
	/**
	 * 获取：品牌
	 */
	public String getBrand() {
		return brand;
	}
	/**
	 * 设置：型号
	 */
	public void setXinghao(String xinghao) {
		this.xinghao = xinghao;
	}
	/**
	 * 获取：型号
	 */
	public String getXinghao() {
		return xinghao;
	}
	/**
	 * 设置：备注
	 */
	public void setBeizhu(String beizhu) {
		this.beizhu = beizhu;
	}
	/**
	 * 获取：备注
	 */
	public String getBeizhu() {
		return beizhu;
	}
	/**
	 * 设置：录入日期
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：录入日期
	 */
	public Date getCreateTime() {
		return createTime;
	}


	@Override
	public String toString() {
		return "ProductDO{" +
				"productId=" + productId +
				", categoryId=" + categoryId +
				", categoryName='" + categoryName + '\'' +
				", categoryDO=" + categoryDO +
				", productNum='" + productNum + '\'' +
				", shebeiName='" + shebeiName + '\'' +
				", baseParam='" + baseParam + '\'' +
				", allParam='" + allParam + '\'' +
				", unit='" + unit + '\'' +
				", facePrice=" + facePrice +
				", chengben=" + chengben +
				", shebeiChengben=" + shebeiChengben +
				", anzhuangChengben=" + anzhuangChengben +
				", level2Cate='" + level2Cate + '\'' +
				", brand='" + brand + '\'' +
				", xinghao='" + xinghao + '\'' +
				", beizhu='" + beizhu + '\'' +
				", createTime=" + createTime +
				'}';
	}
}
